<?php
$this->pageTitle = Yii::app()->name. ' - Administrator Login';
$this->breadcrumbs = array(
    'Login',
);
?>
<?php
$form = $this->beginWidget('CActiveForm', array(
            'id' => 'login-form',
            'enableClientValidation' => true,
            'focus' => array($model, 'username'),
            'clientOptions' => array(
                'validateOnSubmit' => true,
            ),
        ));
?>
<div id="login_spacer"></div>
<?php echo $form->error($model, 'invalid', array('id' => 'error_box', 'class' => 'round_all clearfix')); ?>
<div id="login_box" class="round_all clearfix">

    <label class="fields"><strong><?php echo $form->labelEx($model, 'username'); ?></strong><?php echo $form->textField($model, 'username', array('class' => 'indent round_all')); ?></label>
    <label class="fields"><strong><?php echo $form->labelEx($model, 'password'); ?></strong><?php echo $form->passwordField($model, 'password', array('class' => 'indent round_all')); ?></label>
    <button name="Login" class="button_colour round_all"><img width="24" height="24" alt="Locked 2" src="<?php echo Yii::app()->params['backendUrl']; ?>/images/icons/small/white/locked_2.png"><span>Login</span></button>
    <div id="bar" class="round_bottom">
        Copyright &copy 2011. All rights reserved.
    </div>
    <a href="http://www.esoftdream.net" target="_blank" id="login_logo"><span>Esoftdream</span></a>

</div>
<?php $this->endWidget(); ?>